package com.fkcai.hansoul.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;

/**
 * 该类用于打开 OpenApi 文档
 * 地址： http://localhost:8080/swagger-ui/index.html
 */
@Configuration
public class OpenApiConfig {
	@Bean
	public OpenAPI customOpenAPI() {
		return new OpenAPI()
				.info(new Info()
						.title("API 文档标题")
						.description("API 文档描述")
						.version("1.0.0"));
	}
}
